﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate;
using Thaire.Investment.Domains.Transaction;

namespace Thaire.Investment.Repository
{
    public class FixIncomeSecuritiesHeaderRepo : BaseRepository <FixIncomeSecuritiesHeader, int>
    {
        public FixIncomeSecuritiesHeaderRepo(ISession session)
            : base(session)
        {
        }

        public List<RatingHistory> GetRatingHistory(int fixedIncomeID)
        {
            return new RatingHistoryRepo(_session).GetByFixIncomeSecuritiesHeaderID(fixedIncomeID);
        }

        public List<FixincomesecuritiesPurchase> GetFixIncomeSecuritiesPurchase(int fixedIncomeID)
        {
            return new FixIncomeSecuritiesPurchaseRepo(_session).GetListByHeaderId(fixedIncomeID);
        }
    }
}
